import request from './request'

//ECP账号查询
export function getEcp(params) {
    return request(`api/contract/app/Account/ECP/getAccount`, 'post', params || {})
}
//ERP账号查询
export function getErp(params) {
    return request(`api/contract/app/Account/ERP/getAccount`, 'post', params || {})
}
//ECP账号删除
export function deleteEcp(params) {
    return request(`api/contract/(3)app/Account/ECP/deleteAccount`, 'post', params || {})
}
//ERP账号删除
export function deleteErp(params) {
    return request(`api/contract/(3)app/Account/ERP/deleteAccount`, 'post', params || {})
}

//ECP账号新增
export function addEcp(params) {
    return request(`api/contract/app/Account/ECP/addAccount`, 'post', params || {})
}

//ERP账号新增
export function addErp(params) {
    return request(`api/contract/app/Account/ERP/addAccount`, 'post', params || {})
}

//ECP账号编辑
export function editEcp(params) {
    return request(`api/contract/app/Account/ECP/editAccount`, 'post', params || {})
}

//ERP账号编辑
export function editErp(params) {
    return request(`api/contract/app/Account/ERP/editAccount`, 'post', params || {})
}

//获取ECP验证码
export function getEcpCode(params) {
    return request(`api/contract/app/ECP/getVerificationCode`, 'post', params || {})
}

//登录ECP系统
export function loginEcp(params) {
    return request(`api/contract/app/ECP/doLogin`, 'post', params || {})
}
//登录ECP系统
export function loginErp(params) {
    return request(`api/contract/app/ERP/login`, 'post', params || {})
}

//供货单 ,批次合同执行执行
export function execute(url, params) {
    return request(url, 'post', params || {})
}

//查询操作日志
export function examLog(params) {
    return request(`api/contract/app/ProgressLog`, 'get', params || {})
}
//查询操作日志
export function examError(params) {
    return request(`api/contract/app/ErrorLog`, 'get', params || {})
}

//查询获取到的待办签报号
export function getVisualSign(params) {
    return request(`api/contract/supply/VisualSign`, 'get', params || {})
}

//移除待办签报号
export function delVisualSign(params) {
    return request(`api/contract/supply/VisualSign/delSignMark`, 'post', params || {})
}

//获取招标批次下拉数据(批次合同)
export function getSelect(params) {
    return request(`api/contract/batch/AssignedNot/getPurprjCode`, 'get', params || {})
}
//获取招标批次下拉数据(框架合同)
export function getSelect2(params) {
    return request(`api/contract/frame/AssignedNot/getPurprjCode`, 'get', params || {})
}

//获取未分配合同下拉（批次合同）
export function getTender(params) {
    return request(`api/contract/batch/Announcement/getTender`, 'post', params || {})
}
//获取未分配合同下拉(框架合同)
export function getTender2(params) {
    return request(`api/contract/frame/Announcement/getTender`, 'post', params || {})
}


//获取签章人下拉数据
export function getSelectPeo(params) {
    return request(`api/contract/app/SignPerson`, 'get', params || {})
}

//获取待办签报号下拉数据
export function getSelectDb(params) {
    return request(`api/contract/supply/VisualSign/getSignMark`, 'get', params || {})
}

//人工检查通过(批次合同)
export function checkPass(processCode) {
    return request(`api/contract/app/batch/checkCorrect?processCode=${processCode}`, 'post', {})
}
//重新创建订单(批次合同)
export function checkAfterCreateOrder() {
    return request(`api/contract/batch/CreateOrder/checkAfterCreateOrder`, 'post', {})
}
//人工检查通过(框架合同)
export function checkPass2(processCode) {
    return request(`api/contract/app/frame/checkCorrect?processCode=${processCode}`, 'post', {})
}

//创建订单无错误
export function createOrderPass(params) {
    return request(`api/contract/batch/CreateOrder/createOrderPass`, 'post', params || {})
}

//清除操作日志
export function deleteProgressLog(params) {
    return request(`api/contract/app/ProgressLog/deleteProgressLog`, 'post', params || {})
}
//清除错误日志
export function deleteErrorLog(params) {
    return request(`api/contract/app/ErrorLog/deleteErrorLog`, 'post', params || {})
}

//五省(框架合同)
export function getSpecial(params) {
    return request(`api/contract/frame/Announcement/special`, 'post', params || {})
}


//数据清除
export function deleteDate(params) {
    return request(`api/contract/app/delData`, 'post', params || {})
}


